#!/usr/bin/env bash

# 停止服务
CONTAINER_NAME=$1
ENVS="-e LANG=zh_CN.UTF-8
      -e LD_LIBRARY_PATH=/usr/local/lib
      -e JAVA_HOME=/jdk1.8.0_161
      -e CRF_HOME=/root/crf-0.58
      -e KENLM_HOME=/kenlm"


START_UP_SCRIPT="cd /nlpservice/nlpservice/bin && bash stop.sh start_xiaok.py"

# 启动容器中的服务
docker exec ${ENVS} ${CONTAINER_NAME} /bin/bash -c "${START_UP_SCRIPT}"